<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <head>
    </head>
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
             <ui:define name="content_nav">
                   #{msg.content_nav_costmanage}
                </ui:define>
            <ui:define name="content">
                <h:form  id="paySearchForm">
                <h:panelGrid  styleClass="body_content_box" columns="1">
                        <h:panelGrid styleClass="search_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_payment_search}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                           
                             <h:panelGrid columns="3" style="width: 100%" cellpadding="0" border="0" cellspacing="6">
                                <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_order_pro}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:selectOneMenu value="#{payListBean.payPro}">
                                        <f:selectItems value="#{orderListBean.orderProList}"/>
                                    </h:selectOneMenu>
                                    <h:outputLabel />
                                </h:panelGrid>
                                 <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_invoice_code}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:inputText value="#{payListBean.invoiceNo}"></h:inputText>
                                    <h:outputLabel />
                                </h:panelGrid>
                                <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_invoice_value}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:inputText value="#{payListBean.innvoiceValue}"></h:inputText>
                                    <h:outputLabel />
                                </h:panelGrid>
                                 <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_contact_code}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:inputText value="#{payListBean.contactCode}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_enterprise_name}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:selectOneMenu value="#{payListBean.enterpreseId}">
                                        <f:selectItems value="#{paymentBean.enterpriseList}"/>
                                    </h:selectOneMenu>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                                 <h:panelGrid columnClasses="com_width_75,com_width_200" columns="2" cellpadding="0" border="0" cellspacing="0">
                                     <h:outputLabel value="#{msg.label_payment_sumit_date}" styleClass="com_label_blue"></h:outputLabel>
                                     <t:inputCalendar value="#{payListBean.payDate}" renderAsPopup="true" popupDateFormat="yyyy-MM-dd" helpText="YYYY-MM-DD"
                                                         popupButtonString="..." popupTheme="WH"/>
                                 </h:panelGrid>
                                  <h:panelGrid columnClasses="com_width_75,com_width_150,com_width_50" columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:outputLabel value="#{msg.label_invoice_remark}" styleClass="com_label_blue"></h:outputLabel>
                                    <h:inputText value="#{payListBean.payRemark}"></h:inputText>
                                    <h:outputLabel styleClass="com_width_50"/>
                                </h:panelGrid>
                        
                                  <h:panelGrid cellspacing="0" cellpadding="0" columns="3">
                                   <h:commandButton value="#{msg.bt_search}" action="#{payListBean.refreshData}"/>
                                    <h:commandButton value="#{msg.bt_reset}" action="#{payListBean.reset}"/>
                                    <h:commandButton value="#{msg.bt_new_invoice_input}" action="#{paymentBean.createNewPayment}"/>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                </h:panelGrid>
                    </h:form>
                <h:messages globalOnly="true" infoClass="info"  errorClass="alert" fatalClass="colorOrange" />
                <t:aliasBean alias="#{listBean}" value="#{payListBean}">
                    <f:subview id="subview">
                        <ui:include src="./table_list.xhtml"></ui:include>
                    </f:subview>
                </t:aliasBean>
   
            </ui:define>
        </ui:composition>
    </body>
</html>